package com.starsoft.trade.trader;

import java.io.InputStream;
import java.util.Date;
import java.util.List;
import java.util.Map;

import com.starsoft.trade.bean.TradeAcount;
import com.starsoft.trade.bean.TradeAcountStatus;
import com.starsoft.trade.bean.TradeBill;
import com.starsoft.trade.order.Order;

public interface Trader {
	
	public void init(TradeAcount acount, Map<String, String> apiMap, TraderContextService contextService);

	public void login();
	
	public TradeAcountStatus getPortflio();
	
	public List<TradeBill> getHistory(Date startDate);
	
	public List<TradeBill> getHistory(InputStream is);
	
	public void trade(List<Order> order);
	
	public List<TradeBill> getEntrust();
	
	public void cancelEntrust(List<TradeBill> bills);
	
}
